<!--Copyright (C) Kherty.  All rights reserved.-->
<UserControl
  x:Class="OpenLS.Spreadsheet.UI.InsertFunctionControl"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:ss="clr-namespace:OpenLS.Spreadsheet.Functions;assembly=OpenLS.Spreadsheet"
  xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI"
  xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
  xmlns:Internals1="clr-namespace:OpenLS.UI.Internals;assembly=OpenLS.UI" 
    Height="300" Width="300" 
    Loaded="OnLoaded">
    <!--Title="{Binding Source = {x:Static ssui:SpreadsheetCommands.InsertFunction}, Path=Text}" SizeToContent="Manual" -->
    <Border BorderBrush="Black" BorderThickness="1" Background="Beige" CornerRadius="18">
        <DockPanel>
    <DockPanel.Resources>

      <DataTemplate DataType="{x:Type ss:Function}">
        <TextBlock Text="{Binding LocalizedName}">
        </TextBlock>
      </DataTemplate>
    </DockPanel.Resources>
    <DockPanel DockPanel.Dock="Bottom" LastChildFill="False">
      <Button IsCancel="True" DockPanel.Dock="Right" Content="{x:Static Internals1:UIStringTable.Cancel}"></Button>
      <Button IsDefault="True" DockPanel.Dock="Right"  Name="okButton"  IsEnabled="False"  Content="{x:Static Internals1:UIStringTable.OK}"></Button>
    </DockPanel>
    <ListBox ItemsSource="{Binding}" Name="listBox" MaxHeight ="400" SelectionChanged="OnSelectionChanged"/>
  </DockPanel>
    </Border>
</UserControl>